import request from '@/utils/request'

// 账号 list 不分页
export function listAllAccount() {
  return request({
    url: '/system/user/selectUserList',
    method: 'get'
  })
}

// list
export function metaList() {
  return request({
    url: '/system/metadata/list',
    method: 'get'
  })
}

export function delMeta(id) {
  return request({
    url: 'system/metadata/' + id,
    method: 'DELETE'
  })
}

export function editMetadataSort(params) {
  return request({
    url: 'system/metadata/editMetadataSort',
    method: 'POST',
    params
  })
}

export function editMetadata(params) {
  return request({
    url: 'system/metadata',
    method: 'PUT',
    data: params
  })
}

export function addMetadata(params) {
  return request({
    url: 'system/metadata',
    method: 'POST',
    data: params
  })
}
